//
//  FSLNavigationController.swift
//  直播架构
//
//  Created by 我演示 on 2019/11/5.
//  Copyright © 2019 ALLSall. All rights reserved.
//

import UIKit

class FSLNavigationController: UINavigationController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        view.addGestureRecognizer(interactivePopGestureRecognizer!)
        
        var count : UInt32 = 0
        let ivars = class_copyIvarList(UIGestureRecognizer.self, &count)
        for  i  in 0..<count {
            
            
            
        }
        guard let targets = interactivePopGestureRecognizer?.value(forKey: "_targets" ) as? [NSObject] else {return}
        
        let targetObjc = targets[0]
        let target = targetObjc.value(forKey: "target")
        let action = Selector(("handleNavigationTranition:"))
        
        
        
        let penGes = UIGestureRecognizer(target: nil, action: action)
        
        
        view.addGestureRecognizer(penGes)
        // 使用运行时，打印手势中的所有属性

        
    }
    

    override var preferredStatusBarStyle: UIStatusBarStyle {
        return .lightContent
    }
    
    override func pushViewController(_ viewController: UIViewController, animated: Bool) {
        viewController.hidesBottomBarWhenPushed = true
        super.pushViewController(viewController, animated: animated)
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
